package com.logistics.modules.warehouseManagement.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.logistics.common.utils.PageUtils;
import com.logistics.modules.transportationManagement.entity.CargoEntity;
import com.logistics.modules.transportationManagement.entity.MoveplandetailsEntity;
import com.logistics.modules.warehouseManagement.entity.SeatEntity;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author HURRICANE
 * @email HURRICANE@nb.com
 * @date 2022-05-07 10:44:16
 */
public interface SeatService extends IService<SeatEntity> {

    PageUtils queryPage(Map<String, Object> params);


    PageUtils queryPageByStatus(Map<String, Object> params);


    /**
     * 检查席位是否空缺
     *
     * @param cargoEntity              货物实体
     * @param clientOrderId clientorderdetails实体
     * @return {@link Boolean}
     */
    Boolean checkIfASeatIsVacant(CargoEntity cargoEntity, Integer clientOrderId);

    void removeByRepositoryIds(List<Integer> asList);

    /**
     * 释放占用状态
     *
     * @param details 细节
     */
    void releaseOccupation(MoveplandetailsEntity details);

    List<SeatEntity> selectByRepository();
}

